﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;


    class ReverseString
    {
        static void Main(string[] args)
        {
            string str = "sample";

            char[] arrOfStr = str.ToCharArray();
            Array.Reverse(arrOfStr);
            Console.Write(arrOfStr);
            Console.WriteLine();
        }
    }

